Skip to content

feat: context prompt, tab completion, and cleanup#17

Merged
designcode merged 2 commits intomainfrom
feat/polish-2
Apr 22, 2026
Merged

feat: context prompt, tab completion, and cleanup#17
designcode merged 2 commits intomainfrom
feat/polish-2

Conversation

@designcode
Copy link
Copy Markdown
Collaborator

@designcode designcode commented Apr 22, 2026

Summary

  • Context prompt: REPL prompt shows current working directory (e.g. /my-bucket $ )
  • Tab completion: completes built-in REPL commands in CLI
  • whoami command: shows current auth method and email
  • --help / --version flags: CLI usage and version info
  • Bundle command removed: just-bash ExecResult is string-based, can't stream binary tar data
  • Presign OAuth guard: returns clear error when using session token auth (S3 signing requires access keys)
  • Mount path normalization: mount, umount, and flush now auto-prepend / if missing, so df output stays consistent

Test plan

  • npm test passes
  • npx @tigrisdata/agent-shell --help shows usage
  • npx @tigrisdata/agent-shell --version shows version
  • Prompt updates as you cd between mounted buckets
  • Tab completion works for built-in commands
  • whoami shows auth info after configure/login
  • presign returns clear error when logged in via OAuth
  • mount bucket foo displays as /foo in df

🤖 Generated with Claude Code

- ReplSession.promptText: dynamic prompt showing cwd (e.g. /my-bucket $ )
- CLI and playground use dynamic prompt, updates after cd/configure/login
- CLI tab completion for built-in command names

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
mount/unmount/flush now prepend `/` if the user omits it,
so `df` output stays consistent and `umount foo` matches `/foo`.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@designcode designcode changed the title feat: CLI REPL, OAuth login, and browser playground feat: context prompt, tab completion, and cleanup Apr 22, 2026
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b9f536a. Configure here.

Comment thread src/repl/session.ts
@designcode designcode merged commit 2c08e87 into main Apr 22, 2026
3 checks passed
@designcode designcode deleted the feat/polish-2 branch April 22, 2026 15:54
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 0.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants